package org.example.memora.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.memora.entity.ChatMessage;

import java.util.List;

public interface ChatMessageMapper {
    int insert(ChatMessage message);
    List<ChatMessage> selectByCommunityId(@Param("communityId") Long communityId,
                                          @Param("offset") int offset,
                                          @Param("size") int size);

    //List<ChatMessage> selectByCommunityId(@Param("communityId") Long communityId);
}

